package com.buba.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.buba.pojo.LgArea;
import com.buba.mapper.LgAreaMapper;
import com.buba.service.LgAreaService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author MrJia
 * @since 2020-10-27
 */
@Service
public class LgAreaServiceImpl extends ServiceImpl<LgAreaMapper, LgArea> implements LgAreaService {

    @Autowired
    private LgAreaMapper lgAreaMapper;

    @Override
    public List<LgArea> selectListByPid(String pid) {
        QueryWrapper<LgArea> lgAreaQueryWrapper = new QueryWrapper<>();
        return lgAreaMapper.selectList(lgAreaQueryWrapper.lambda().eq(LgArea::getPid,pid));
    }
}
